<?php
// URL: http://localhost/ChampChooser/core/services/user/userTeamService.php?userId=5004

require_once ("../../config/config.php");
require_once ("../../config/constants.php");
require_once ("../../db/queries.php");
require_once ("../../common/common.php");

$userId= $_REQUEST["userId"];

function playerQuery($userId) {
	$strQuery = "select * from team t where t.id=(select u.currentTeamId from users u where u.id='".$userId."');";
	return generateResultSet($strQuery);
}

makeTeamQueryXML(playerQuery($userId));

?>